package com.alpaak.eurekafeignclient.service;

import com.alpaak.eurekafeignclient.config.FeignConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: spring-cloud-demo
 * @className: EurekaClientFeign
 * @description:
 * @author: alpaak
 * @create: 2019-05-04 14:09
 **/

@FeignClient(value = "eureka-client",
        configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaClientFeign {
    @GetMapping("/hi")
    String sayHiFromEurekaClient(@RequestParam(value = "name")String name);
}
